<?php
class CI_Pagehw
{
	public $cur_page=0;
	public $per_page = 0;
	public $total_count = 0;
	public $base_url='';
	
	public function __construct($param){
		if(count($param)>0){
			$this->init($param);	
		}
	}
	
	private function init($param){
		if(count($param)>0){
			foreach ($param as $k=>$v){
				if(isset($this->$k)){
					$this->$k = $v;
				}
			}
		}
	}
	
	public function create_link(){
		//得到当前页
		$base_page = 1;
		
		
	}
}